package com.czh.subject.infra.basic.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.czh.subject.infra.basic.entity.SubjectLiked;
import java.util.List;

/**
 * 题目点赞表(SubjectLiked)表服务接口
 *
 * @author caozaihui
 * @since 2024-09-14 11:39:39
 */
public interface SubjectLikedService extends IService<SubjectLiked> {

    /** 
     * 
     * @param id 主键
     * @author caozaihui  
     * @description  通过ID查询单条数据
     * @date 2024-09-14 11:39:39
     * @return 实例对象
     */
    SubjectLiked selectSubjectLikedById (Long id);
        
    /** 
     * 
     * @param subjectLiked 实例对象
     * @author caozaihui  
     * @description 分页查询数据
     * @date 2024-09-14 11:39:39
     * @return 实例对象
     */
    List<SubjectLiked> querySubjectLikedList (SubjectLiked subjectLiked);

    /**
     * 查询数量
     * @param subjectLiked
     * @return
     */
    int querySubjectLikedCount(SubjectLiked subjectLiked);
    /**
     * 条件查询
     * @param subjectLiked
     * @return
     */
    SubjectLiked querySubjectLiked(SubjectLiked subjectLiked);

    /**
     * 批量删除
     * @param subjectLikedList
     * @return
     */
    Boolean batchInsert(List<SubjectLiked> subjectLikedList);
   /** 
     * 
     * @param subjectLiked 实例对象
     * @author caozaihui  
     * @description  新增数据
     * @date 2024-09-14 11:39:39
     * @return 实例对象
     */
    int insert(SubjectLiked subjectLiked);
    
   /** 
     * 
     * @param subjectLiked 实例对象
     * @author caozaihui  
     * @description 修改数据并返回
     * @date 2024-09-14 11:39:39
     * @return 实例对象
     */
    int update(SubjectLiked subjectLiked);
    
    
    /**
     *
     * @param ids 主键
     * @author caozaihui 
     * @description  通过主键删除数据
     * @date 2024-09-14 11:39:39
     * @return
     */
    int deleteByIds(List<Long> ids);

    List<SubjectLiked> querySubjectLikedPage(SubjectLiked subjectLiked, int start, Integer pageSize);
}

